package models

import (
	"github.com/astaxie/beego/orm"
	_ "github.com/go-sql-driver/mysql"
)

// 注册数据库
func RegisterDB() {
	orm.RegisterDriver("mysql", orm.DRMySQL)
	orm.RegisterDataBase("default", "mysql", "root:p123456@/marx?charset=utf8")
	orm.RegisterModel(new(User), new(Aline), new(Seat), new(Order), new(Usermessage), new(Email))
}
